<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加文档</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/admin/css/base.css">

<script language="javascript">

function callSubMethod(){
  var str=window.showModalDialog("{:U('Upload/index')}","","dialogWidth=400px;dialogHeight=200px;toolbar=no;scroll=yes;");
  document.getElementById('cover').value=str;

}



</script>
<link rel="stylesheet" href="__ROOT__/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="__ROOT__/kindeditor/plugins/code/prettify.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/css/upload.css">

  <script charset="utf-8" src="__ROOT__/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="__ROOT__/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="__ROOT__/kindeditor/plugins/code/prettify.js"></script>
  <script>
    KindEditor.ready(function(K) {
      K.create('textarea[name="header_content"]', {
        allowFileManager : true,
        newlineTag: 'p',
        htmlTags: {
          font : ['color', 'size', 'face', '.background-color'],
          span : [],
          div : [
            'align', '.border', '.margin', '.padding', '.text-align', '.color',
            '.background-color', '.font-size', '.font-family', '.font-weight', '.background',
            '.font-style', '.text-decoration', '.vertical-align', '.margin-left'
          ],
          table: [
            'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor',
            '.padding', '.margin', '.border', 'bgcolor', '.text-align', '.color', '.background-color',
            '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background',
            '.width', '.height', '.border-collapse'
          ],
          'td,th': [
            'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor',
            '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight',
            '.font-style', '.text-decoration', '.vertical-align', '.background', '.border'
          ],
          a : ['href', 'target', 'name'],
          embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'],
          img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'],
          'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [
            'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background',
            '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left'
          ],
          pre : ['class'],
          hr : ['class', '.page-break-after'],
          'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : []
        }

      });
      K.create('textarea[name="middle_content"]', {
        allowFileManager : true,
        newlineTag: 'p',
        htmlTags: {
          font : ['color', 'size', 'face', '.background-color'],
          span : [],
          div : [
            'align', '.border', '.margin', '.padding', '.text-align', '.color',
            '.background-color', '.font-size', '.font-family', '.font-weight', '.background',
            '.font-style', '.text-decoration', '.vertical-align', '.margin-left'
          ],
          table: [
            'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor',
            '.padding', '.margin', '.border', 'bgcolor', '.text-align', '.color', '.background-color',
            '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background',
            '.width', '.height', '.border-collapse'
          ],
          'td,th': [
            'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor',
            '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight',
            '.font-style', '.text-decoration', '.vertical-align', '.background', '.border'
          ],
          a : ['href', 'target', 'name'],
          embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'],
          img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'],
          'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [
            'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background',
            '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left'
          ],
          pre : ['class'],
          hr : ['class', '.page-break-after'],
          'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : []
        }

      });
      K.create('textarea[name="tail_content"]', {
        allowFileManager : true,
        newlineTag: 'p',
        htmlTags: {
          font : ['color', 'size', 'face', '.background-color'],
          span : [],
          div : [
            'align', '.border', '.margin', '.padding', '.text-align', '.color',
            '.background-color', '.font-size', '.font-family', '.font-weight', '.background',
            '.font-style', '.text-decoration', '.vertical-align', '.margin-left'
          ],
          table: [
            'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor',
            '.padding', '.margin', '.border', 'bgcolor', '.text-align', '.color', '.background-color',
            '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background',
            '.width', '.height', '.border-collapse'
          ],
          'td,th': [
            'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor',
            '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight',
            '.font-style', '.text-decoration', '.vertical-align', '.background', '.border'
          ],
          a : ['href', 'target', 'name'],
          embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'],
          img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'],
          'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [
            'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background',
            '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left'
          ],
          pre : ['class'],
          hr : ['class', '.page-break-after'],
          'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : []
        }

      });


    });
  </script>
</head>
<body leftmargin="8" topmargin="8" background='__PUBLIC__/skin/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
  <tr>
    <td height="26" background="__PUBLIC__/skin/images/newlinebg3.gif"><table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">批量增加招聘发布</td>
        </tr>
      </table></td>
  </tr>
</table>

<!--  内容列表   -->
<form name="form2" action="" method="post" enctype="multipart/form-data">
  <table width="98%" border="0" align="center" cellspacing="1" bgcolor="#D1DDAA">
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">发布类型：</td>
      <td bgcolor="#FFFFFF">
        <select>
          <option value ="volvo">批量发布</option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">图片上传：<input type="checkbox" name="photo_repeat" value="1">是否可重复</td>
      <td bgcolor="#FFFFFF" id="uploadArea"><span id="whenClickUpload">点击上传</span></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">标题城市：</td>
      <td bgcolor="#FFFFFF"><input name="title_city" type="text" id="title_city" style="height:22px; width:400px;" placeholder="如：北京,上海,南京"></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">区域数量限制：</td>
      <td bgcolor="#FFFFFF"><input name="city_limit" value="{$CityLimit}" type="text" id="city_limit" style="height:22px; width:400px;" placeholder="不填，默认为10"></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">分类修辞</td>
      <td bgcolor="#FFFFFF"><input name="title_rhetoric" type="text" id="title_rhetoric" style="height:22px; width:400px;" placeholder="如：生意最火爆的"></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">标题结尾：</td>
      <td bgcolor="#FFFFFF"><input name="title_ending" type="text" id="title_ending" style="height:22px; width:400px;" placeholder="如：模特高薪日结包住宿,日结包住宿"></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">所属分类：</td>
      <td bgcolor="#FFFFFF">
        <volist name="Categories" id="cate">
          <label><input name="class_type[]" type="checkbox" id="class_type" value="{$cate.id}" />{$cate.name}</label>
        </volist>
      </td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">用户名</td>
      <td bgcolor="#FFFFFF"><input name="username" type="text" id="username" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">企业名称</td>
      <td bgcolor="#FFFFFF"><input name="shopname" type="text" id="shopname" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">联 系 人</td>
      <td bgcolor="#FFFFFF"><input name="contact" type="text" id="contact" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">联系电话</td>
      <td bgcolor="#FFFFFF"><input name="phone" type="text" id="phone" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">联系邮箱</td>
      <td bgcolor="#FFFFFF"><input name="email" type="text" id="email" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">联系qq</td>
      <td bgcolor="#FFFFFF"><input name="qq" type="text" id="qq" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">微信咨询</td>
      <td bgcolor="#FFFFFF"><input name="weixin" type="text" id="weixin" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">本店场次</td>
      <td bgcolor="#FFFFFF"><input name="perform" type="text" id="perform" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td width="100" height="28" bgcolor="#FFFFFF">商务通</td>
      <td bgcolor="#FFFFFF"><input name="swt" type="text" id="swt" style="height:22px; width:400px;" placeholder=""></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;头部内容：[可用{##}分割]</td>
      <td bgcolor="#FFFFFF"><textarea name="header_content" id="header_content" placeholder="" style="width:100%;height:400px;visibility:hidden;"></textarea></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;中部内容：[可用 {##} 分割]</td>
      <td bgcolor="#FFFFFF"><textarea name="middle_content" id="middle_content" style="width:100%;height:400px;visibility:hidden;"></textarea></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;尾部内容：[可用 {##} 分割]</td>
      <td bgcolor="#FFFFFF"><textarea name="tail_content" id="tail_content" style="width:100%;height:400px;visibility:hidden;"></textarea></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
      <td bgcolor="#FFFFFF">
        <input name="submit" type="submit" id="submit" value="发布">
        <input name="submit2" type="submit" id="submit2" value="预览标题"></td>
    </tr>
  </table>
</form>
<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
  <tr bgcolor='#EEF4EA'>
    <td background='skin/images/wbg.gif' align='center'>&nbsp;</td>
  </tr>
</table>
<section id="uploader_view" role="main" class="l-main hide" style="background: #fff; border: 2px solid #009966;margin-top:-250px;margin-left:-350px;position:fixed;left: 50%; top: 50%; width: 50%;">
  <div>
    <span style="float: right; cursor: pointer; display: inline-block; padding: 10px;" class="closeUploader">关闭</span>
  </div>
  <div class="uploader__box js-uploader__box l-center-box">
    <form action="#" method="POST" enctype="multipart/form-data">
      <div class="uploader__contents">
        <label class="button button--secondary" for="fileinput">请选择文件</label>
        <input id="fileinput" class="uploader__file-input" type="file" multiple value="Select Files">
      </div>
      <input class="button button--big-bottom" type="submit" value="Upload Selected Files">
    </form>
  </div>
</section>
</body>
</html>
<script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
<script>
  function addFileMore(){
    var target    = $('#uploadArea'),
            input = '　<input type="file" name="photo[]" style="border: 1px solid #ffb667">';
    target.append(input);
    return false;
  }
</script>

<script src="__PUBLIC__/js/upload.js"></script>
<script>
  (function(){
    var options = {};
    $('.js-uploader__box').uploader({
      'selectButtonCopy':'请选择或拖拽文件',
      'instructionsCopy':'',
      'submitButtonCopy':'上传选择的文件',
      'furtherInstructionsCopy':'',
      'secondarySelectButtonCopy':'选择更多的文件',
      'ajaxUrl' : '<?php echo U("uploadAll") ?>',
      whenUploaded: function(data) {
        alert(data.msg);
        $('#uploader_view').toggleClass('hide');
      }
    });
    $('#whenClickUpload, .closeUploader').click(function(){
      $('#uploader_view').toggleClass('hide');
    });
  }());

</script>